package com.gateway.enter.service;

import com.gateway.enter.dao.StudentDao;
import com.gateway.enter.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author KLC0422
 * @create 2021-12-26- 9:40
 */
@Service
public class StudentService {

    @Autowired
    StudentDao studentDao;


    public Student getStudentByEmailAddress(Student student){
        return studentDao.getStudentByEmailAddress(student);
    }

    public int insertStudent(Student student){
        return studentDao.insertStudent(student);
    }

    public int updateStudentByActive(Student student){
        return studentDao.updateStudentByActive(student);
    }

    public int updateStudentByAddress(Student student){
        return studentDao.updateStudentByAddress(student);
    }

}
